package com.carpedil.shirodemo.system.service.impl;

import com.carpedil.shirodemo.system.mapper.RoleOperatorMapper;
import org.junit.After;
import org.junit.Before;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * RoleServiceImpl Tester.
 *
 * @author <Authors name>
 * @since
 *     <pre>01/07/2021</pre>
 *
 * @version 1.0
 */
@SpringBootTest
class RoleServiceImplTest {
  @Autowired RoleOperatorMapper roleOperatorMapper;

  @Before
  public void before() throws Exception {}

  @After
  public void after() throws Exception {}

  /** Method: selectAllByQuery(Integer page, Integer limit, Role roleQuery) */
  @Test
  public void testSelectAllByQuery() throws Exception {
    // TODO: Test goes here...
  }

  /** Method: getMenusByRoleId(Integer roleId) */
  @Test
  public void testGetMenusByRoleId() throws Exception {
    // TODO: Test goes here...

  }

  /** Method: selectAll() */
  @Test
  public void testSelectAll() throws Exception {
    // TODO: Test goes here...
    Integer[] operators = roleOperatorMapper.getOperatorsByRoleId(1);
    System.out.println("operators = " + operators);
  }

  /** Method: getOperatorsByRoleId(Integer roleId) */
  @Test
  public void testGetOperatorsByRoleId() throws Exception {
    // TODO: Test goes here...
  }
}
